import request from '@/utils/request'

// 查询微信用户提现审核列表
export function listExamine(query) {
  return request({
    url: '/wx/user/examine/list',
    method: 'get',
    params: query
  })
}

// 查询微信用户提现审核详细
export function getExamine(id) {
  return request({
    url: '/wx/user/examine/' + id,
    method: 'get'
  })
}

// 新增微信用户提现审核
export function addExamine(data) {
  return request({
    url: '/wx/user/examine',
    method: 'post',
    data: data
  })
}

// 修改微信用户提现审核
export function updateExamine(data) {
  return request({
    url: '/wx/user/examine',
    method: 'put',
    data: data
  })
}

// 修改微信用户提现审核
export function examine(data) {
  return request({
    url: '/wx/user/examine/examine',
    method: 'put',
    data: data
  })
}

// 删除微信用户提现审核
export function delExamine(id) {
  return request({
    url: '/wx/user/examine/' + id,
    method: 'delete'
  })
}

// 导出微信用户提现审核
export function exportExamine(query) {
  return request({
    url: '/wx/user/examine/export',
    method: 'get',
    params: query
  })
}

// 批量处理审核成功
export function batchExamine(id) {
  return request({
    url: '/wx/user/examine/batchExamine/' + id,
    method: 'put'
  })
}
